I lost root’s password, again.
we need to stop mysql and start it in safe mode. I tried many ways to kill mysql, but only this works for my Ubuntu 14.04:
root@myhost:/usr/bin# initctl --system stop mysql
sudo mysqld_safe --skip-grant-tables & mysql -uroot use mysql; update user set password=PASSWORD("new_password") where User='root'; flush privileges; quit sudo /etc/init.d/mysql stop sudo /etc/init.d/mysql start
you may try to login using the new password now:
mysql -u root -p
if you’re using a password file, remember to update it.
[client] user=root password=new_password
useful links
http://stackoverflow.com/questions/18733944/ubuntu-cant-stop-mysqld
https://www.digitalocean.com/community/questions/setup-mysql-on-ubuntu-droplet-getting-error-error-1045-28000-access-denied-for-user-root-localhost-using-password-yes
Python: multiprocessing forking.py assertionError <->
// Proudly powered by Apache, PHP, MySQL, WordPress, Bootstrap, etc,.